x86: New vcpu_op call to get physical CPU identity.
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Mar 2008 10:52:51 +0000 (10:52 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Mar 2008 10:52:51 +0000 (10:52 +0000)
commit12367d55a195f3944cc569d1de185aed62e627a6
treeb37ca731dcf586b6c834bd1d41f53497653969ab
parent635dc946fe69efebd30f9301941db6047499df41
x86: New vcpu_op call to get physical CPU identity.

Some AMD machines have APIC IDs that not equal to CPU IDs. In
the default Xen configuration, ACPI calls on these machines
can get confused. This shows up most noticeably when running
AMD PowerNow!. The only solution is for dom0 to get the
hypervisor's cpuid to apicid table when needed (ie, when dom0
vcpus are pinned).

Add a vcpu op to Xen to allow dom0 to query the hypervisor for
architecture dependent physical cpu information if dom0 vcpus are
pinned.

Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/acpi/boot.c
xen/arch/x86/domain.c
xen/common/domain.c
xen/common/schedule.c
xen/include/public/vcpu.h
xen/include/xen/acpi.h
xen/include/xen/sched.h